const express = require("express")
const controller = require("../controller/newsController")

const router = express.Router()

// 查找新闻分类表的数据
router.get("/catlist", controller.findCatlist)
// 查找新闻列表接口
router.get("/list", controller.findList)
// 查询新闻的详情页
router.get("/details/:nid", controller.findDetails)

module.exports = router